package com.reggie.module.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.reggie.common.ResultResponseVo;
import com.reggie.module.entity.po.AddressBook;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author 早睡蛋
 * @Date 2022/9/28 15:23:24
 * @Desc:
 */
public interface AddressBookService extends IService<AddressBook> {
    ResultResponseVo saveAddress(AddressBook addressBook, HttpServletRequest request);

    ResultResponseVo getListByUserId(HttpServletRequest request);

    ResultResponseVo setDefault(Long id, HttpServletRequest request);

    ResultResponseVo getAddressById(Long id);

    ResultResponseVo updateAddress(AddressBook addressBook, HttpServletRequest request);

    ResultResponseVo getDefaultAddress(HttpServletRequest request);
}
